﻿using System.Collections.Generic;
using System.Linq;

namespace TierraReborn
{
    public class Reaper
    {
        private List<Creature> _reaperQueue = new List<Creature>();

        public void Add(Creature newBorn)
        {
            // Add to button of queue
        }

        public void Reap()
        {
            var target = _reaperQueue.FirstOrDefault();
            if (target == null)
                return;

            // Deallocate memory (do not erase it) in Soup
            // Remove from Slicer

            // Remove from reaper queue
            _reaperQueue.RemoveAt(0);
        }

        public void Penalize(Creature creature)
        {
            // Move him 1 position up in the queue
            // Maybe based on relative amount of errors compared to other creature
        }

        public void Favour(Creature creature)
        {
            // Move him 1 position down in the queue
            // Maybe based on relative amount of errors compared to other creature
        }
    }
}
